package cn.kgc.service;


import cn.kgc.entity.CandFollowHrMo;

import java.util.List;

/**
 * @author YC
 * 求职者关注HR的相关业务层
 */
public interface CandFollowHrService {

    /**
     * 求职者关注HR
     */
    boolean addCandFollowHr(CandFollowHrMo candFollowHrMO);

    /**
     * 求职者取消关注HR
     */
    void deleteCandFollowHr(String candId, String hrId);

    /**
     * 分页查询求职者关注HR
     */
    List<CandFollowHrMo> page(String candUserId, int pageIndex, int pageSize);

    /**
     * 判断求职者是否已关注HR
     *
     * @param candUserId
     * @param hrId
     * @return
     */
    boolean hasFollowedHr(String candUserId, String hrId);

}
